/* 全局样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--dark-color);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 搜索框样式 */
.search-box {
    display: flex;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

#search-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

#search-button {
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#search-button:hover {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transform: scale(1.02);
}

#search-button:active {
    transform: scale(0.98);
}

/* 搜索流程样式 */
.search-flow-container {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-flow-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.search-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
}

.search-flow::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e9ecef;
    z-index: 1;
    border-radius: 2px;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.flow-step.active {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.1) 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.15);
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
}

.flow-step.active .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
}

.flow-arrow {
    font-size: 1.5rem;
    color: #adb5bd;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.flow-step.active + .flow-arrow {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* 系统状态卡片样式 */
.status-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.status-item {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-left: 5px solid transparent;
}

.status-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.status-ready {
    border-left-color: #28a745;
}

.status-not-ready {
    border-left-color: #dc3545;
}

.status-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.status-ready .status-icon {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.status-not-ready .status-icon {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.status-text {
    flex: 1;
    font-size: 0.95rem;
}

.status-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .status-items {
        grid-template-columns: 1fr;
    }
    
    .status-item {
        padding: 1.25rem;
    }
}

/* 搜索结果样式 */
.search-results {
    margin: 2rem 0;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-out;
}

.result-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-item:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.result-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.result-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
}

.result-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #868e96;
}

.result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-results {
        padding: 1.5rem;
    }
    
    .result-item {
        padding: 1.25rem;
    }
    
    .result-title {
        font-size: 1.1rem;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-flow {
        flex-direction: column;
    }

    .flow-step {
        margin-bottom: 20px;
        width: 100%;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}
